package cn.tedu.admin.account.dao.persist.repository.impl;

import cn.tedu.admin.account.dao.persist.mapper.UserRoleMapper;
import cn.tedu.admin.account.dao.persist.repository.IUserRoleRepository;
import cn.tedu.admin.account.pojo.entity.UserRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class UserRoleRepositoryImpl implements IUserRoleRepository {
    @Autowired
    UserRoleMapper userRoleMapper;
    @Override
    public int insertBatch(List<UserRole> userRoleList) {
        return userRoleMapper.insertBatch(userRoleList);
    }
}
